#!/bin/bash


# 创建pip配置目录
mkdir -p ~/.pip

# 编辑配置文件
cat > ~/.pip/pip.conf << EOF

[global]
index-url = http://192.168.1.200:9001/repository/pypi-group/simple/
extra-index-url = 
    https://pypi.tuna.tsinghua.edu.cn/simple/
    https://mirrors.aliyun.com/pypi/simple/
    https://pypi.douban.com/simple/
    http://192.168.1.200:9001/repository/pypi-group/simple/
    http://127.0.0.1:9001/repository/pypi-group/simple/
trusted-host =
    pypi.tuna.tsinghua.edu.cn
    mirrors.aliyun.com
    pypi.douban.com
    192.168.1.200
    127.0.0.1
timeout = 120

EOF
